package xyz.liuyuhe.StudySpring.ch5.limited;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClassPathXmlApplication {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:ch5/meta-spring.xml");
        
        ClassPathXmlApplicationContext ac = context.getBean("level3", ClassPathXmlApplicationContext.class);
        System.out.println(ac.getClass().getName());
        
        ac.getBean(HelloWorldH.class).printHelo();
        //TODO 这是报错点
        ac.getBean(HelloWorld.class).printHelo();
        
        context.close();
    }
}